Remove support for xenbus driver subtypes since with the subtype field there's no...
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 18 Aug 2005 19:51:46 +0000 (19:51 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 18 Aug 2005 19:51:46 +0000 (19:51 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
linux-2.6-xen-sparse/include/asm-xen/xenbus.h

index cfdd92fcdddedd7e9cfa2af1577e4ee4a35bf879..b346b9dddc4b1f3572ec6c271cec39a3f6acdeb9 100644 (file)
@@ -48,8 +48,7 @@ static const struct xenbus_device_id *
 match_device(const struct xenbus_device_id *arr, struct xenbus_device *dev)
 {
        for (; !streq(arr->devicetype, ""); arr++) {
-               if (streq(arr->devicetype, dev->devicetype) &&
-                   streq(arr->subtype, dev->subtype ?: ""))
+               if (streq(arr->devicetype, dev->devicetype))
                        return arr;
        }
        return NULL;
@@ -284,8 +283,6 @@ static void xenbus_release_device(struct device *dev)
        if (dev) {
                struct xenbus_device *xendev = to_xenbus_device(dev);
 
-               if (xendev->subtype)
-                       kfree(xendev->subtype);
                kfree(xendev);
        }
 }
@@ -331,11 +328,6 @@ static int xenbus_probe_node(struct xen_bus_type *bus,
        xendev->devicetype = xendev->nodename + strlen(xendev->nodename) + 1;
        strcpy(xendev->devicetype, type);
 
-       /* This might not exist, but that's OK. */
-       xendev->subtype = xenbus_read(xendev->nodename, "subtype", NULL);
-       if (IS_ERR(xendev->subtype))
-               xendev->subtype = NULL;
-
        xendev->dev.parent = &bus->dev;
        xendev->dev.bus = &bus->bus;
        xendev->dev.release = xenbus_release_device;
index 685b5d7a3e68681eca2b4025e03a3ab3f68fdfda..d119b78ad4ff4f3cf182c0854d6c0bb904b6d055 100644 (file)
@@ -37,7 +37,6 @@
 /* A xenbus device. */
 struct xenbus_device {
        char *devicetype;
-       char *subtype;
        char *nodename;
        struct device dev;
        int has_error;
@@ -53,7 +52,6 @@ struct xenbus_device_id
 {
        /* .../device/<device_type>/<identifier> */
        char devicetype[32];    /* General class of device. */
-       char subtype[32];       /* Contents of "subtype" for this device */
 };
 
 /* A xenbus driver. */